#ifndef MAINTOOLBAR_H
#define MAINTOOLBAR_H

#include <QWidget>

class QBoxLayout;
class QToolButton;
class MainToolBar : public QWidget
{
    Q_OBJECT
public:
    explicit MainToolBar(QWidget *parent = nullptr);

    void addAction(QAction *action);
    void addButton(QToolButton *button);
    void addSplitter();
    void addWidget(QWidget *widget);

signals:

public slots:

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QBoxLayout *m_layout;
    int m_pointer;
};

#endif // MAINTOOLBAR_H
